package shop.cart.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import shop.common.core.Result;

@FeignClient(name = "product-service", path = "/api/products")
public interface RemoteProductService {

    @GetMapping("/details/{id}")
    Result details(@PathVariable String id) ;
}
